.container {
  width: 100%;
  /* max-width: 1550px; */
  /* margin: 0 auto; */
  padding: 20px 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.headerRow {
  margin-bottom: 30px;
}

.sectionTitle {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 18px;
  margin-left: 60px;
}

.sectionDesc {
  font-size: 13px;
  color: #666;
  margin-bottom: 25px;
  margin-left: 60px;
}

.festivalList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  margin-left: 340px;
  margin-top: -70px;
}

.festivalItem {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  /* background-color: #fff; */
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.festivalItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.festivalItem.active {
  background-color: wheat;
  color: white;
  border-color: #188fffab;
}

.festivalLeft {
  display: flex;
  align-items: center;
}

.festivalName {
  font-size: 16px;
  font-weight: 500;
}

.festivalItem.active .festivalName {
  color: white;
}

.hotTag {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  background-color: #ff4d4f;
  color: white;
  border-radius: 4px;
}

/* 新的图片布局样式 */
.templateGallery {
  display: flex;
  gap: 20px;
  height: 600px;
}

.mainImageContainer {
  flex: 0 0 48.6%;
  height: 100%;
}

.mainTemplateCard {
  position: relative;
  width: 670px;
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-left: 60px;
}

.mainTemplateImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.smallImagesContainer {
  flex: 0 0 40%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  height: 100%;
}

.smallTemplateCard {
  position: relative;
  width: 300px;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-left: 20px;
}

.smallTemplateImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mainTemplateCard:hover .mainTemplateImage,
.smallTemplateCard:hover .smallTemplateImage {
  transform: scale(1.05);
}

.templateInfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.templateInfo h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: white;
}

.templateInfo span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  display: block;
  margin-left: 195px;
  margin-top: -20px;
}